package com.czq.gulimail.gulimailproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czq.common.utils.PageUtils;
import com.czq.gulimail.gulimailproduct.entity.AttrEntity;
import com.czq.gulimail.gulimailproduct.vo.AttrEntityVO;
import com.czq.gulimail.gulimailproduct.vo.resp.AttrResp;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author czq
 * @email 1807099124@qq.com
 * @date 2024-09-23 19:03:06
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, String queryType);

    /**
     * 修改是否可以检索
     */
    void updateSearchType(Long attrId, Integer searchType);

    void updateShowDesc(Long attrId, Integer showDesc);

    void updateEnable(Long attrId, Integer enable);

    void updateValueType(Long attrId, Integer valueType);

    void saveAttrEntityVO(AttrEntityVO attr);

    AttrResp getAttrRespById(Long attrId);

    void updateAttrEntityVO(AttrEntityVO attr);

    void removeAttrAndRelation(List<Long> list);

    PageUtils querySalePage(Map<String, Object> parmas, Long catelogId);
}

